Skip to main content

SetMacros

Sets macros to the document.

Syntax

expression.SetMacros(data);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
dataRequiredMacrosThe Macros object containing the data about all the macros from the document.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("SetMacros", [JSON.stringify (Content)], function () {
window.Asc.plugin.executeCommand ("close", "");
});